import request from '@/utils/request'

// 查询资源信息列表
export function listRes(query) {
  return request({
    url: '/teaching/res/list',
    method: 'get',
    params: query
  })
}

// 查询资源信息详细
export function getRes(resourcesId) {
  return request({
    url: '/teaching/res/' + resourcesId,
    method: 'get'
  })
}

// 新增资源信息
export function addRes(data) {
  return request({
    url: '/teaching/res',
    method: 'post',
    data: data
  })
}

// 修改资源信息
export function updateRes(data) {
  return request({
    url: '/teaching/res',
    method: 'put',
    data: data
  })
}

// 删除资源信息
export function delRes(resourcesId) {
  return request({
    url: '/teaching/res/' + resourcesId,
    method: 'delete'
  })
}
